package com.liaowei.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.liaowei.model.domain.UserPermission;
import org.apache.ibatis.annotations.Param;

/**
* @author LindaMan
* @description 针对表【wy_user_permission(用户-权限表)】的数据库操作Mapper
* @createDate 2023-05-01 17:19:40
* @Entity com.liaowei.user.model.domain.UserPermission
*/
public interface UserPermissionMapper extends BaseMapper<UserPermission> {
    // 为同一个用户插入多个权限
    int insertBatchByUserId(@Param("userId") long userId,
                            @Param("permissionIds") long[] permissionIds);

}




